package mk.com.ldm.corepoint.implementation.shared;

import java.util.ArrayList;

// User name can be acquired through the LoginData singleton, and is an unchangeable value
// for that session. The user map is created on the server, exactly by the LoginData username 
// value.

@SuppressWarnings("serial")
public class UserObject extends SimpleObject {
	
	private String username;
	private String password;
	private String role;
	private ArrayList<PermissionsObject> permissions;
	
	
	public UserObject(){
		
	}

	public UserObject(String username, String password, String role,
			ArrayList<PermissionsObject> permissions) {
		super();
		this.username = username;
		this.password = password;
		this.role = role;
		this.permissions = permissions;
	}

	public String getUsername() {
		return username;
	}

	public void setUsername(String username) {
		this.username = username;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public String getRole() {
		return role;
	}

	public void setRole(String role) {
		this.role = role;
	}

	public ArrayList<PermissionsObject> getPermissions() {
		return permissions;
	}

	public void setPermissions(ArrayList<PermissionsObject> permissions) {
		this.permissions = permissions;
	}


	
	
	
}
